<?php
namespace app\common\request\tyyh;

class UserWallet extends Base {

	public function index() {
		$uid = $this->get_current_uid();
		return compact('uid');
	}

	public function balance_order() {
		$uid = $this->get_current_uid();
		$money = $this->post('money');
		$sub_mch_id = '';
		return compact('uid', 'money', 'sub_mch_id');
	}

	public function balance_order_pay() {
		$id = $this->post('id');
		$uid = $this->get_current_uid();
		$route = $this->get_route();
		$ip = $this->ip();
		return compact('id', 'uid', 'route', 'ip');
	}

	public function balance_order_private_list() {
		$uid = $this->get_current_uid();
		$limit = $this->post('limit');
		$order = $this->post('order', 'id');
		$order_type = $this->post('order_type', 'desc');
		return compact('uid', 'limit', 'order', 'order_type');
	}

	public function user_wallet_balance_log() {
		$uid = $this->get_current_uid();
		$limit = $this->post('limit');
		$order = $this->post('order', 'id');
		$order_type = $this->post('order_type', 'desc');
		return compact('uid', 'limit', 'order', 'order_type');
	}

	public function user_wallet_balance_refund() {
		$uid = $this->get_current_uid();
		$oid = $this->post('oid');
		return compact('uid', 'oid');
	}

	public function cancel_balance_refund() {
		$id = $this->post('id');
		$uid = $this->get_current_uid();
		return compact('id', 'uid');
	}
}
